package com.biz.primus.ms.promotion.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntity;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @author david-liu
 */
@Entity
@Table(name = "pmt_seckill_product")
@Getter
@Setter
public class SeckillProduct extends BaseEntity {
    private static final long serialVersionUID = -6889464962961810985L;

    @JoinColumn(name = "seckill_promotion_id")
    @ManyToOne
    private SeckillPromotion seckillPromotion;

    /**
     * 参与秒杀商品的ID
     */
    private Long productId;

    /**
     * 秒杀商品总量
     */
    private Integer seckillQuantity;

    /**
     * 限购数量
     */
    private Integer purchaseLimit;

    /**
     * 秒杀价
     */
    private Integer seckillPrice;
}
